package com.yundingai.service;

import com.yundingai.domain.entity.AllPlan;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author liyuxiang
* @description 针对表【all_plan】的数据库操作Service
* @createDate 2025-07-16 12:43:19
*/
public interface AllPlanService extends IService<AllPlan> {

    List<AllPlan> allPlan();

    //查询用户所有未删除计划
    List<AllPlan> selectPlansByUserId(Integer userId) ;

    //更新计划
    void updatePlan(AllPlan plan);

    //删除计划
    void deletePlan(Integer planId);

    //新增计划
    void addPlan(AllPlan plan, Integer userId);

    //获取单个计划
    AllPlan selectPlanById(Integer planId);

    int deleteByPlanName(String planName,String userId);
}
